﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
//
using InterfaceLibrary;

namespace Controller
{
    public class SortCompletedEventArgs : EventArgs
    {
        #region Fields
        //  Fields

        #endregion

        #region Constructors
        //  Constructors

        public SortCompletedEventArgs ( SortInfo SorterInfo )
        {
            SorterInfo.Timer.Stop ( );

            ElapsedMils = SorterInfo.Timer.ElapsedMilliseconds;
            SortedCollection = SorterInfo.Sorter.Value.SortedList;
            SorterName = SorterInfo.Sorter.Key;
        }
        #endregion

        #region Functions
        //  Functions

        #endregion

        #region Properties
        //  Properties

        public long ElapsedMils
        {
            get;
            private set;
        }

        public IEnumerable<int> SortedCollection
        {
            get;
            private set;
        }

        public string SorterName
        {
            get;
            private set;
        }
        #endregion
    }
}
